<template>
  <div>
    <!-- 内容区域 -->
    <router-view></router-view>

    <!-- 底部区域 -->
    <van-tabbar v-model="active" route active-color="#ee0a24" inactive-color="#000" to="/home">
      <van-tabbar-item icon="home-o" to="/home">首页</van-tabbar-item>
      <van-tabbar-item icon="search" to="/search">找房</van-tabbar-item>
      <van-tabbar-item icon="friends-o" to="/news">资讯</van-tabbar-item>
      <van-tabbar-item icon="setting-o" to="/user">我的</van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script>
export default {
  data () {
    return {
      active: 0
    }
  }
}
</script>

<style>
.van-tabbar--bottom {
  display: flex;
  flex: 1;
}
</style>